home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000198_news@columbia.edu _Tue Mar 12 12:18:22 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id MAA26436 for <kermit.misc@watsun>; Tue, 12 Mar 1996 12:18:21 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id MAA23927 for kermit.misc@watsun; Tue, 12 Mar 1996 12:18:16 -0500 (EST)
  4. Path: news.columbia.edu!news.new-york.net!news.wctc.net!chi-news.cic.net!news.math.psu.edu!psuvax1!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!in2.uu.net!news.cais.net!netaxs.com!cmi.hahnemann.edu!news
  5. From: David Rowlands <rowlandsd@dilbert.mcphu.edu>
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: How to get string with '\' into take script?
  8. Date: Tue, 12 Mar 1996 10:00:06 -0500
  9. Organization: Hahnemann University
  10. Lines: 22
  11. Message-ID: <31459176.41C6@dilbert.mcphu.edu>
  12. References: <31418faf.52414e414848@ranahh.hanse.de>
  13. NNTP-Posting-Host: cmi.hahnemann.edu
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset=us-ascii
  16. Content-Transfer-Encoding: 7bit
  17. X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
  18.  
  19. Volkmar Grote wrote:
  20. > and the checksum and feed it to a take script. I am already
  21. > successful in handling embedded '\'s, like in "R\DEL", (with
  22. > 16 successive '\'s in an sed command) but characters at the
  23. > beginning or the end of a word and groups of multiple backslashes
  24. > don't come through. :-(
  25. > Can I prevent Kermit from interpreting the '\'s? Or can I
  26. > substitute them on the command line so they come out correctly
  27. > in the output commands?
  28.  
  29. This isn't a kermit solution but a UNIX one.  If you are already 
  30. using sed to remove some backslashes, why not use it to delete 
  31. them all, or replace them with a space or other character?
  32.  
  33. global remove of \   -               sed 's/\\//g' input > output 
  34. global replace of \ with space  -    sed 's/\\/ /g' input > output 
  35.  
  36. If this helps, great, if I misunderstood your problem, sorry.
  37.  
  38.         Dave Rowlands